﻿@using Lari.Configuration
@using Lari.Services.ViewModel;
@model UserModel

@using (Html.BeginForm("LogOnSubmit", "Core", new { returnUrl = @Request.QueryString["returnUrl"] }))
{    
    @Html.AntiForgeryToken("LogOn")
    <div id="pagetitle">
        <h1>@ScreenName.Core.Logon</h1>  
    </div>
    <div class="spacer">
    </div>
    <div id="pagecontent">
        <table style="border-collapse: collapse; width: 100%;">
            <tr>
                <td id="leftColumn">
                </td>
                <td style="width: 40%" id="rightColumn">
                    <div>
                        <label class="required">
                            User</label>
                    </div>
                    <div>
                        @Html.TextBoxFor(m => m.UserId)
                        @Html.ValidationMessageFor(m => m.UserId)
                    </div>
                    <div class="spacer">
                    </div>
                    <div>
                        <label class="required">
                            Password</label>
                    </div>
                    <div>
                        @Html.PasswordFor(m => m.Password)
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <div class="spacer">
                    </div>
                    <div>@Html.LabelFor(m => m.RememberMe)</div>
                    <div>@Html.CheckBoxFor(m => m.RememberMe, new { id = "rememberMe" })</div>
                    <div class="spacer"></div>
                    <div>
                        <input type="submit" value="Sign in" id="btnSubmit"  />
                    </div>
                    <div class="spacer">
                    </div>
                    <div>
                        Don't have account-sign up here. @Html.ActionLink("Create Account", "SignupUser", "Core")
                    </div>
                    <div class="spacer">
                    </div>
                    <div>
                        @Html.ActionLink("Do you forgot Password?", "ForgotPassword", "Core")
                    </div>
                </td>
            </tr>
        </table>
    </div>
  
}
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnSubmit").button();
    });

</script>
